cmake_minimum_required(VERSION 3.5)
project(untitled LANGUAGES CXX)
option(USE_OPENCV "If you can use OpenCV." OFF)
if(USE_OPENCV)
    find_package(OpenCV REQUIRED)
endif()

set(PROJECT_SOURCES
    # camera.cpp
    # monocular.cpp
    # stereo.cpp
    # distance.cpp
    transformation.cpp
)
set(CMAKE_BUILD_TYPE debug)
add_executable(${CMAKE_PROJECT_NAME}_exe ${PROJECT_SOURCES})
if(USE_OPENCV)
    target_link_libraries(${CMAKE_PROJECT_NAME}_exe ${OpenCV_LIBS})
endif()
target_link_libraries(${CMAKE_PROJECT_NAME}_exe ${CMAKE_SOURCE_DIR}/zhnmat.a)
target_link_libraries(${CMAKE_PROJECT_NAME}_exe ${CMAKE_SOURCE_DIR}/algorithm.a)
message("project name: ${CMAKE_PROJECT_NAME}")
message(STATUS "zhn build type:${CMAKE_BUILD_TYPE}")
